import React, { Component } from 'react';

class Child extends Component {
    state = {
        childVal:'maozhuxi'
    };

    abc = ()=>{
        this.props.handleVal(this.state.childVal)
    };
    render() {
        return (
            <div>
                <button onClick={this.abc} >click</button>
            </div>
        );
    }
}

export default Child;
